///////////////////////////////////////////////////////////////////////////
// Copyright 2009 Arabic Game Developer Network, All rights reserved
// www.agd-online.com - info@agdn-online.com
//
// File: main.cpp
// Description: King's Valley entry point file.
//
///////////////////////////////////////////////////////////////////////////

// This file is part of kvalleyX.
// 
// kvalleyX is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// kvalleyX is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with kvalleyX.  If not, see <http://www.gnu.org/licenses/>.


/////////////////// #includes /////////////////////////////////////////////
#include "game.h"
#include <iostream>

/////////////////// Functions Implementations /////////////////////////////
int main(int argc, char *argv[])
{
	const bool fullScreen = true; // Add to the configuration file.
	Game& game = Game::getInstance();
	CoreLib::Core2& core = CoreLib::Core2::getInstance();
	if (!core.init(game, SCREEN_WIDTH, SCREEN_HEIGHT, fullScreen))
	{
		std::cerr << "ERROR: Could not initialise CoreLib!\n";
		return -1;
	}

	// return the next call
	core.run(GAME_FPS);
	// move to core2 destructor.
	core.shutdown();
	// remove
	return 0;
}

////////////////// End of File : main.cpp /////////////////////////////////
